package mi.payment.utils.transaction;

import android.content.Context;

import java.util.Map;

import mi.payment.bean.db.TradeData;
import mi.payment.utils.iso8583.MsgField;

/**
 * 签退
 */
public class SignOutTask extends TransactionTask<TradeData, Void, TradeData> {

    protected SignOutTask(Context context) {
        super(context, true);
    }

    @Override
    protected void onBegin(TradeData[] params) {
        tradeData = params[0];
        dbBean = tradeData.getPayDetail();
        dbBean.tradeAnswerCode = "00";
    }

    @Override
    protected TradeData appointResult() {
        return tradeData;
    }

    @Override
    protected Map<String, MsgField> preAssembly() {
        return null;
    }

    @Override
    protected byte[] changeAndAssembly(Map<String, MsgField> fieldMap) {
        return null;
    }

    @Override
    protected TradeData doTransactionSelf() {
        return tradeData;
    }


}
